package com.wegis.demo.controller;


import com.wegis.demo.entity.Geom;
import com.wegis.demo.service.IGeomService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author slc
 * @since 2021-07-25
 */
@RestController
@CrossOrigin("*")
@RequestMapping
public class GeomController {
    @Autowired
    private IGeomService iGeomService;

    @ResponseBody
    @PostMapping("/geoms")
    public Map<String, Object> addGeom(@RequestBody Geom geom) {
        return iGeomService.addGeom(geom);
    }
}

